package android.longs.study.home.servlet.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class MobleHomeModel implements Serializable{

	public int id;
	public String uid;
	public String name;
	public String createTime;
	
	//描述
	public List<String>   homeDescription;
	
	public List<String> htmlArrayList = new ArrayList();
	public Set<HtmlModel> htmlObjArrayList = new HashSet<>();
	public List<String> pictureArrayList = new ArrayList<>();
	
	public void addHtmlModel(HtmlModel model){
		if (model==null) {
			return;
		}
		htmlObjArrayList.add(model);
	}
	
	
	
	
	public Set<HtmlModel> getHtmlObjArrayList() {
		return htmlObjArrayList;
	}




	public void setHtmlObjArrayList(Set<HtmlModel> htmlObjArrayList) {
		this.htmlObjArrayList = htmlObjArrayList;
	}




	public List<String> getHomeDescription() {
		return homeDescription;
	}
	public void setHomeDescription(List<String> homeDescription) {
		this.homeDescription = homeDescription;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public List<String> getHtmlArrayList() {
		return htmlArrayList;
	}
	public void setHtmlArrayList(List<String> htmlArrayList) {
		this.htmlArrayList = htmlArrayList;
	}
	public List<String> getPictureArrayList() {
		return pictureArrayList;
	}
	public void setPictureArrayList(List<String> pictureArrayList) {
		this.pictureArrayList = pictureArrayList;
	}
	public void addHtmlPath(String path){
		if (path==null||path.equals("")) {
			return;
		}
		htmlArrayList.add(path);
	}
	public void addPicturePath(String path){
		if (path==null||path.equals("")) {
			return;
		}
		pictureArrayList.add(path);
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}





	public String getUid() {
		return uid;
	}





	public void setUid(String uid) {
		this.uid = uid;
	}





	public String getName() {
		return name;
	}





	public void setName(String name) {
		this.name = name;
	}





	public String getcreateTime() {
		return createTime;
	}





	public void setcreateTime(String createTime) {
		this.createTime = createTime;
	}





	@Override
	public String toString() {
		return "MobleHomeModel [id=" + id + ", uid=" + uid + ", name=" + name
				+ ", createTime=" + createTime + ", htmlSet=" +htmlArrayList.toString()
				+",objHtmlSet "+htmlObjArrayList.toArray().toString()
				+ ", pictureSet="  +pictureArrayList.size()+ "]";
	}





	








	
	
	
}
